<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  <%@ page import="org.jsoft.vo.Sell" %>
  <%@ page import="org.jsoft.util.DateAndString" %>
  <%
    	String path = request.getContextPath();
    %>
    <%
request.setCharacterEncoding("UTF-8");
String htmlData = request.getParameter("cusRemark") != null ? request.getParameter("cusRemark") : "";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改销售记录</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
.right-button02 {
	font-family: "宋体";
	font-size: 12px;
	color: #174B73;
	height: 20px;
	width: 45px;
	background-image: url(../images/customer003.gif);
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
}
-->
</style>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../kindeditor_new/themes/default/default.css" />
<link rel="stylesheet" href="../kindeditor_new/plugins/code/prettify.css" />
<script language="javascript" type="text/javascript"
	src="../My97DatePicker/WdatePicker.js"></script>
<script>
<script charset="utf-8" src="../kindeditor_new/kindeditor.js"></script>
<script charset="utf-8" src="../kindeditor_new/lang/zh_CN.js"></script>
<script charset="utf-8" src="../kindeditor_new/plugins/code/prettify.js"></script>

<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="cusRemark"]', {
				cssPath : '../kindeditor_new/plugins/code/prettify.css',
				uploadJson : '../kindeditor_new/jsp/upload_json.jsp',
				fileManagerJson : '../kindeditor_new/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
				}
			});
			prettyPrint();
		});
</script>

</head>
<%
	Sell sell = (Sell)request.getAttribute("sell");
%>
<body>
 	<form action="Update02" method="post" >
 	     
		<div>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
  				<tr>
      				<td sell.getSellTime() align="center">销售信息</td>
  				</tr>	
  				
  				<tr>
	    			<td>
						<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
							<tr>
								<td width="100%">
									<fieldset style="height:100%;">
							  			<table border="0" cellpadding="5" cellspacing="3" style="width:100%">
							 				<tr>
							    				<td align="right" width="20%">销售编号:</td>
							    				<td width="30%"><input name='SellId' type="text" style="width:154px" value="<%=sell.getSellId()%>"/></td>
							    				<td align="right" width="20%">销售商品数量:</td>
							    				<td width="30%"><input name='SellGoodCount' type="text" style="width:154px" value="<%=sell.getSellGoodCount() %>"/></td>
							    			</tr>
							    			<tr>
							    				<td align="right" width="20%">客户总数:</td>
							    				<td width="30%"><input name='CusNum' type="text" style="width:154px" value="<%=sell.getCusNum()%>"/></td>
							    				<td align="right" width="20%">销售&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间:</td>
							    				<td width="30%"><input type="text" id="date" onclick="WdatePicker()" class="Wdate" name="SellTime" value="<%=sell.getSellTime()%>"/></td>
							    			</tr>
							    			<tr>
							    				<td align="right" width="20%">商品编号:</td>
							    				<td width="30%"><input type='text' name='GoodId' style="width:154px" value="<%=sell.getGoodId() %>"/></td>
							    				<td align="right" width="20%">销售总&nbsp;&nbsp;&nbsp;&nbsp;钱数:</td>
							    				<td width="30%"><input type="text" name='SellComMoney' style="width:154px" value="<%=sell.getSellComMoney() %>"/></td>
							    			</tr>
							    			<tr>
							    				<td align="right" width="20%">员工编号:</td>
							    				<td width="30%"><input type="text" name='EmpId' style="width:154px" value="<%=sell.getEmpId() %>"/></td>
							    				
							    			</tr>
							    			
							  			</table><br/>
									</fieldset>			
								</td>
							</tr>
						</table>
					</td>
	  			</tr>
				<tr>
					<td colspan="3" align="center" height="50px">
					<input type="submit" class="right-button02" value="提交"/>
					<input type="button" class="right-button02" value="取消" onclick="alert('取消！');"/></td>
				</tr>
			</table>
		</div>
  	</form>
</body>
</html>
<%!
private String htmlspecialchars(String str) {
	str = str.replaceAll("&", "&amp;");
	str = str.replaceAll("<", "&lt;");
	str = str.replaceAll(">", "&gt;");
	str = str.replaceAll("\"", "&quot;");
	return str;
}
%>